# _*_ coding: UTF-8 _*_
# 开发人员  ：LuoWen_Top
# 开发时间  ：2020/9/10 17:35
# 文件名称  ：xadmin.py
# 开发工具  ：PyCharm


"""
    开发该文档说明。
"""

import xadmin

from .models import Topic, Entry


class TopicAdmin(object):
    list_display = ["text", "date_added"]
    list_filter = ["text", "date_added"]
    search_fields = ["text", "date_added"]


class EntryAdmin(object):
    list_display = ["topic", "text", "date_added"]
    list_filter = ["topic", "date_added"]
    search_fields = ["topic", "text", "date_added"]


xadmin.site.register(Topic, TopicAdmin)
xadmin.site.register(Entry, EntryAdmin)
